package gjbsh.bangong.ds.model;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class 单位Example {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public 单位Example() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria and单位idIsNull() {
            addCriterion("单位ID is null");
            return (Criteria) this;
        }

        public Criteria and单位idIsNotNull() {
            addCriterion("单位ID is not null");
            return (Criteria) this;
        }

        public Criteria and单位idEqualTo(String value) {
            addCriterion("单位ID =", value, "单位id");
            return (Criteria) this;
        }

        public Criteria and单位idNotEqualTo(String value) {
            addCriterion("单位ID <>", value, "单位id");
            return (Criteria) this;
        }

        public Criteria and单位idGreaterThan(String value) {
            addCriterion("单位ID >", value, "单位id");
            return (Criteria) this;
        }

        public Criteria and单位idGreaterThanOrEqualTo(String value) {
            addCriterion("单位ID >=", value, "单位id");
            return (Criteria) this;
        }

        public Criteria and单位idLessThan(String value) {
            addCriterion("单位ID <", value, "单位id");
            return (Criteria) this;
        }

        public Criteria and单位idLessThanOrEqualTo(String value) {
            addCriterion("单位ID <=", value, "单位id");
            return (Criteria) this;
        }

        public Criteria and单位idLike(String value) {
            addCriterion("单位ID like", value, "单位id");
            return (Criteria) this;
        }

        public Criteria and单位idNotLike(String value) {
            addCriterion("单位ID not like", value, "单位id");
            return (Criteria) this;
        }

        public Criteria and单位idIn(List<String> values) {
            addCriterion("单位ID in", values, "单位id");
            return (Criteria) this;
        }

        public Criteria and单位idNotIn(List<String> values) {
            addCriterion("单位ID not in", values, "单位id");
            return (Criteria) this;
        }

        public Criteria and单位idBetween(String value1, String value2) {
            addCriterion("单位ID between", value1, value2, "单位id");
            return (Criteria) this;
        }

        public Criteria and单位idNotBetween(String value1, String value2) {
            addCriterion("单位ID not between", value1, value2, "单位id");
            return (Criteria) this;
        }

        public Criteria and上级单位idIsNull() {
            addCriterion("上级单位ID is null");
            return (Criteria) this;
        }

        public Criteria and上级单位idIsNotNull() {
            addCriterion("上级单位ID is not null");
            return (Criteria) this;
        }

        public Criteria and上级单位idEqualTo(String value) {
            addCriterion("上级单位ID =", value, "上级单位id");
            return (Criteria) this;
        }

        public Criteria and上级单位idNotEqualTo(String value) {
            addCriterion("上级单位ID <>", value, "上级单位id");
            return (Criteria) this;
        }

        public Criteria and上级单位idGreaterThan(String value) {
            addCriterion("上级单位ID >", value, "上级单位id");
            return (Criteria) this;
        }

        public Criteria and上级单位idGreaterThanOrEqualTo(String value) {
            addCriterion("上级单位ID >=", value, "上级单位id");
            return (Criteria) this;
        }

        public Criteria and上级单位idLessThan(String value) {
            addCriterion("上级单位ID <", value, "上级单位id");
            return (Criteria) this;
        }

        public Criteria and上级单位idLessThanOrEqualTo(String value) {
            addCriterion("上级单位ID <=", value, "上级单位id");
            return (Criteria) this;
        }

        public Criteria and上级单位idLike(String value) {
            addCriterion("上级单位ID like", value, "上级单位id");
            return (Criteria) this;
        }

        public Criteria and上级单位idNotLike(String value) {
            addCriterion("上级单位ID not like", value, "上级单位id");
            return (Criteria) this;
        }

        public Criteria and上级单位idIn(List<String> values) {
            addCriterion("上级单位ID in", values, "上级单位id");
            return (Criteria) this;
        }

        public Criteria and上级单位idNotIn(List<String> values) {
            addCriterion("上级单位ID not in", values, "上级单位id");
            return (Criteria) this;
        }

        public Criteria and上级单位idBetween(String value1, String value2) {
            addCriterion("上级单位ID between", value1, value2, "上级单位id");
            return (Criteria) this;
        }

        public Criteria and上级单位idNotBetween(String value1, String value2) {
            addCriterion("上级单位ID not between", value1, value2, "上级单位id");
            return (Criteria) this;
        }

        public Criteria and单位名称IsNull() {
            addCriterion("单位名称 is null");
            return (Criteria) this;
        }

        public Criteria and单位名称IsNotNull() {
            addCriterion("单位名称 is not null");
            return (Criteria) this;
        }

        public Criteria and单位名称EqualTo(String value) {
            addCriterion("单位名称 =", value, "单位名称");
            return (Criteria) this;
        }

        public Criteria and单位名称NotEqualTo(String value) {
            addCriterion("单位名称 <>", value, "单位名称");
            return (Criteria) this;
        }

        public Criteria and单位名称GreaterThan(String value) {
            addCriterion("单位名称 >", value, "单位名称");
            return (Criteria) this;
        }

        public Criteria and单位名称GreaterThanOrEqualTo(String value) {
            addCriterion("单位名称 >=", value, "单位名称");
            return (Criteria) this;
        }

        public Criteria and单位名称LessThan(String value) {
            addCriterion("单位名称 <", value, "单位名称");
            return (Criteria) this;
        }

        public Criteria and单位名称LessThanOrEqualTo(String value) {
            addCriterion("单位名称 <=", value, "单位名称");
            return (Criteria) this;
        }

        public Criteria and单位名称Like(String value) {
            addCriterion("单位名称 like", value, "单位名称");
            return (Criteria) this;
        }

        public Criteria and单位名称NotLike(String value) {
            addCriterion("单位名称 not like", value, "单位名称");
            return (Criteria) this;
        }

        public Criteria and单位名称In(List<String> values) {
            addCriterion("单位名称 in", values, "单位名称");
            return (Criteria) this;
        }

        public Criteria and单位名称NotIn(List<String> values) {
            addCriterion("单位名称 not in", values, "单位名称");
            return (Criteria) this;
        }

        public Criteria and单位名称Between(String value1, String value2) {
            addCriterion("单位名称 between", value1, value2, "单位名称");
            return (Criteria) this;
        }

        public Criteria and单位名称NotBetween(String value1, String value2) {
            addCriterion("单位名称 not between", value1, value2, "单位名称");
            return (Criteria) this;
        }

        public Criteria and单位类型idIsNull() {
            addCriterion("单位类型ID is null");
            return (Criteria) this;
        }

        public Criteria and单位类型idIsNotNull() {
            addCriterion("单位类型ID is not null");
            return (Criteria) this;
        }

        public Criteria and单位类型idEqualTo(String value) {
            addCriterion("单位类型ID =", value, "单位类型id");
            return (Criteria) this;
        }

        public Criteria and单位类型idNotEqualTo(String value) {
            addCriterion("单位类型ID <>", value, "单位类型id");
            return (Criteria) this;
        }

        public Criteria and单位类型idGreaterThan(String value) {
            addCriterion("单位类型ID >", value, "单位类型id");
            return (Criteria) this;
        }

        public Criteria and单位类型idGreaterThanOrEqualTo(String value) {
            addCriterion("单位类型ID >=", value, "单位类型id");
            return (Criteria) this;
        }

        public Criteria and单位类型idLessThan(String value) {
            addCriterion("单位类型ID <", value, "单位类型id");
            return (Criteria) this;
        }

        public Criteria and单位类型idLessThanOrEqualTo(String value) {
            addCriterion("单位类型ID <=", value, "单位类型id");
            return (Criteria) this;
        }

        public Criteria and单位类型idLike(String value) {
            addCriterion("单位类型ID like", value, "单位类型id");
            return (Criteria) this;
        }

        public Criteria and单位类型idNotLike(String value) {
            addCriterion("单位类型ID not like", value, "单位类型id");
            return (Criteria) this;
        }

        public Criteria and单位类型idIn(List<String> values) {
            addCriterion("单位类型ID in", values, "单位类型id");
            return (Criteria) this;
        }

        public Criteria and单位类型idNotIn(List<String> values) {
            addCriterion("单位类型ID not in", values, "单位类型id");
            return (Criteria) this;
        }

        public Criteria and单位类型idBetween(String value1, String value2) {
            addCriterion("单位类型ID between", value1, value2, "单位类型id");
            return (Criteria) this;
        }

        public Criteria and单位类型idNotBetween(String value1, String value2) {
            addCriterion("单位类型ID not between", value1, value2, "单位类型id");
            return (Criteria) this;
        }

        public Criteria and创建日期IsNull() {
            addCriterion("创建日期 is null");
            return (Criteria) this;
        }

        public Criteria and创建日期IsNotNull() {
            addCriterion("创建日期 is not null");
            return (Criteria) this;
        }

        public Criteria and创建日期EqualTo(Date value) {
            addCriterion("创建日期 =", value, "创建日期");
            return (Criteria) this;
        }

        public Criteria and创建日期NotEqualTo(Date value) {
            addCriterion("创建日期 <>", value, "创建日期");
            return (Criteria) this;
        }

        public Criteria and创建日期GreaterThan(Date value) {
            addCriterion("创建日期 >", value, "创建日期");
            return (Criteria) this;
        }

        public Criteria and创建日期GreaterThanOrEqualTo(Date value) {
            addCriterion("创建日期 >=", value, "创建日期");
            return (Criteria) this;
        }

        public Criteria and创建日期LessThan(Date value) {
            addCriterion("创建日期 <", value, "创建日期");
            return (Criteria) this;
        }

        public Criteria and创建日期LessThanOrEqualTo(Date value) {
            addCriterion("创建日期 <=", value, "创建日期");
            return (Criteria) this;
        }

        public Criteria and创建日期In(List<Date> values) {
            addCriterion("创建日期 in", values, "创建日期");
            return (Criteria) this;
        }

        public Criteria and创建日期NotIn(List<Date> values) {
            addCriterion("创建日期 not in", values, "创建日期");
            return (Criteria) this;
        }

        public Criteria and创建日期Between(Date value1, Date value2) {
            addCriterion("创建日期 between", value1, value2, "创建日期");
            return (Criteria) this;
        }

        public Criteria and创建日期NotBetween(Date value1, Date value2) {
            addCriterion("创建日期 not between", value1, value2, "创建日期");
            return (Criteria) this;
        }

        public Criteria and最后修改日期IsNull() {
            addCriterion("最后修改日期 is null");
            return (Criteria) this;
        }

        public Criteria and最后修改日期IsNotNull() {
            addCriterion("最后修改日期 is not null");
            return (Criteria) this;
        }

        public Criteria and最后修改日期EqualTo(Date value) {
            addCriterion("最后修改日期 =", value, "最后修改日期");
            return (Criteria) this;
        }

        public Criteria and最后修改日期NotEqualTo(Date value) {
            addCriterion("最后修改日期 <>", value, "最后修改日期");
            return (Criteria) this;
        }

        public Criteria and最后修改日期GreaterThan(Date value) {
            addCriterion("最后修改日期 >", value, "最后修改日期");
            return (Criteria) this;
        }

        public Criteria and最后修改日期GreaterThanOrEqualTo(Date value) {
            addCriterion("最后修改日期 >=", value, "最后修改日期");
            return (Criteria) this;
        }

        public Criteria and最后修改日期LessThan(Date value) {
            addCriterion("最后修改日期 <", value, "最后修改日期");
            return (Criteria) this;
        }

        public Criteria and最后修改日期LessThanOrEqualTo(Date value) {
            addCriterion("最后修改日期 <=", value, "最后修改日期");
            return (Criteria) this;
        }

        public Criteria and最后修改日期In(List<Date> values) {
            addCriterion("最后修改日期 in", values, "最后修改日期");
            return (Criteria) this;
        }

        public Criteria and最后修改日期NotIn(List<Date> values) {
            addCriterion("最后修改日期 not in", values, "最后修改日期");
            return (Criteria) this;
        }

        public Criteria and最后修改日期Between(Date value1, Date value2) {
            addCriterion("最后修改日期 between", value1, value2, "最后修改日期");
            return (Criteria) this;
        }

        public Criteria and最后修改日期NotBetween(Date value1, Date value2) {
            addCriterion("最后修改日期 not between", value1, value2, "最后修改日期");
            return (Criteria) this;
        }

        public Criteria and备注IsNull() {
            addCriterion("备注 is null");
            return (Criteria) this;
        }

        public Criteria and备注IsNotNull() {
            addCriterion("备注 is not null");
            return (Criteria) this;
        }

        public Criteria and备注EqualTo(String value) {
            addCriterion("备注 =", value, "备注");
            return (Criteria) this;
        }

        public Criteria and备注NotEqualTo(String value) {
            addCriterion("备注 <>", value, "备注");
            return (Criteria) this;
        }

        public Criteria and备注GreaterThan(String value) {
            addCriterion("备注 >", value, "备注");
            return (Criteria) this;
        }

        public Criteria and备注GreaterThanOrEqualTo(String value) {
            addCriterion("备注 >=", value, "备注");
            return (Criteria) this;
        }

        public Criteria and备注LessThan(String value) {
            addCriterion("备注 <", value, "备注");
            return (Criteria) this;
        }

        public Criteria and备注LessThanOrEqualTo(String value) {
            addCriterion("备注 <=", value, "备注");
            return (Criteria) this;
        }

        public Criteria and备注Like(String value) {
            addCriterion("备注 like", value, "备注");
            return (Criteria) this;
        }

        public Criteria and备注NotLike(String value) {
            addCriterion("备注 not like", value, "备注");
            return (Criteria) this;
        }

        public Criteria and备注In(List<String> values) {
            addCriterion("备注 in", values, "备注");
            return (Criteria) this;
        }

        public Criteria and备注NotIn(List<String> values) {
            addCriterion("备注 not in", values, "备注");
            return (Criteria) this;
        }

        public Criteria and备注Between(String value1, String value2) {
            addCriterion("备注 between", value1, value2, "备注");
            return (Criteria) this;
        }

        public Criteria and备注NotBetween(String value1, String value2) {
            addCriterion("备注 not between", value1, value2, "备注");
            return (Criteria) this;
        }

        public Criteria and状态IsNull() {
            addCriterion("状态 is null");
            return (Criteria) this;
        }

        public Criteria and状态IsNotNull() {
            addCriterion("状态 is not null");
            return (Criteria) this;
        }

        public Criteria and状态EqualTo(BigDecimal value) {
            addCriterion("状态 =", value, "状态");
            return (Criteria) this;
        }

        public Criteria and状态NotEqualTo(BigDecimal value) {
            addCriterion("状态 <>", value, "状态");
            return (Criteria) this;
        }

        public Criteria and状态GreaterThan(BigDecimal value) {
            addCriterion("状态 >", value, "状态");
            return (Criteria) this;
        }

        public Criteria and状态GreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("状态 >=", value, "状态");
            return (Criteria) this;
        }

        public Criteria and状态LessThan(BigDecimal value) {
            addCriterion("状态 <", value, "状态");
            return (Criteria) this;
        }

        public Criteria and状态LessThanOrEqualTo(BigDecimal value) {
            addCriterion("状态 <=", value, "状态");
            return (Criteria) this;
        }

        public Criteria and状态In(List<BigDecimal> values) {
            addCriterion("状态 in", values, "状态");
            return (Criteria) this;
        }

        public Criteria and状态NotIn(List<BigDecimal> values) {
            addCriterion("状态 not in", values, "状态");
            return (Criteria) this;
        }

        public Criteria and状态Between(BigDecimal value1, BigDecimal value2) {
            addCriterion("状态 between", value1, value2, "状态");
            return (Criteria) this;
        }

        public Criteria and状态NotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("状态 not between", value1, value2, "状态");
            return (Criteria) this;
        }

        public Criteria and省份idIsNull() {
            addCriterion("省份ID is null");
            return (Criteria) this;
        }

        public Criteria and省份idIsNotNull() {
            addCriterion("省份ID is not null");
            return (Criteria) this;
        }

        public Criteria and省份idEqualTo(String value) {
            addCriterion("省份ID =", value, "省份id");
            return (Criteria) this;
        }

        public Criteria and省份idNotEqualTo(String value) {
            addCriterion("省份ID <>", value, "省份id");
            return (Criteria) this;
        }

        public Criteria and省份idGreaterThan(String value) {
            addCriterion("省份ID >", value, "省份id");
            return (Criteria) this;
        }

        public Criteria and省份idGreaterThanOrEqualTo(String value) {
            addCriterion("省份ID >=", value, "省份id");
            return (Criteria) this;
        }

        public Criteria and省份idLessThan(String value) {
            addCriterion("省份ID <", value, "省份id");
            return (Criteria) this;
        }

        public Criteria and省份idLessThanOrEqualTo(String value) {
            addCriterion("省份ID <=", value, "省份id");
            return (Criteria) this;
        }

        public Criteria and省份idLike(String value) {
            addCriterion("省份ID like", value, "省份id");
            return (Criteria) this;
        }

        public Criteria and省份idNotLike(String value) {
            addCriterion("省份ID not like", value, "省份id");
            return (Criteria) this;
        }

        public Criteria and省份idIn(List<String> values) {
            addCriterion("省份ID in", values, "省份id");
            return (Criteria) this;
        }

        public Criteria and省份idNotIn(List<String> values) {
            addCriterion("省份ID not in", values, "省份id");
            return (Criteria) this;
        }

        public Criteria and省份idBetween(String value1, String value2) {
            addCriterion("省份ID between", value1, value2, "省份id");
            return (Criteria) this;
        }

        public Criteria and省份idNotBetween(String value1, String value2) {
            addCriterion("省份ID not between", value1, value2, "省份id");
            return (Criteria) this;
        }

        public Criteria and地区idIsNull() {
            addCriterion("地区ID is null");
            return (Criteria) this;
        }

        public Criteria and地区idIsNotNull() {
            addCriterion("地区ID is not null");
            return (Criteria) this;
        }

        public Criteria and地区idEqualTo(String value) {
            addCriterion("地区ID =", value, "地区id");
            return (Criteria) this;
        }

        public Criteria and地区idNotEqualTo(String value) {
            addCriterion("地区ID <>", value, "地区id");
            return (Criteria) this;
        }

        public Criteria and地区idGreaterThan(String value) {
            addCriterion("地区ID >", value, "地区id");
            return (Criteria) this;
        }

        public Criteria and地区idGreaterThanOrEqualTo(String value) {
            addCriterion("地区ID >=", value, "地区id");
            return (Criteria) this;
        }

        public Criteria and地区idLessThan(String value) {
            addCriterion("地区ID <", value, "地区id");
            return (Criteria) this;
        }

        public Criteria and地区idLessThanOrEqualTo(String value) {
            addCriterion("地区ID <=", value, "地区id");
            return (Criteria) this;
        }

        public Criteria and地区idLike(String value) {
            addCriterion("地区ID like", value, "地区id");
            return (Criteria) this;
        }

        public Criteria and地区idNotLike(String value) {
            addCriterion("地区ID not like", value, "地区id");
            return (Criteria) this;
        }

        public Criteria and地区idIn(List<String> values) {
            addCriterion("地区ID in", values, "地区id");
            return (Criteria) this;
        }

        public Criteria and地区idNotIn(List<String> values) {
            addCriterion("地区ID not in", values, "地区id");
            return (Criteria) this;
        }

        public Criteria and地区idBetween(String value1, String value2) {
            addCriterion("地区ID between", value1, value2, "地区id");
            return (Criteria) this;
        }

        public Criteria and地区idNotBetween(String value1, String value2) {
            addCriterion("地区ID not between", value1, value2, "地区id");
            return (Criteria) this;
        }

        public Criteria and单位所属部门idIsNull() {
            addCriterion("单位所属部门ID is null");
            return (Criteria) this;
        }

        public Criteria and单位所属部门idIsNotNull() {
            addCriterion("单位所属部门ID is not null");
            return (Criteria) this;
        }

        public Criteria and单位所属部门idEqualTo(String value) {
            addCriterion("单位所属部门ID =", value, "单位所属部门id");
            return (Criteria) this;
        }

        public Criteria and单位所属部门idNotEqualTo(String value) {
            addCriterion("单位所属部门ID <>", value, "单位所属部门id");
            return (Criteria) this;
        }

        public Criteria and单位所属部门idGreaterThan(String value) {
            addCriterion("单位所属部门ID >", value, "单位所属部门id");
            return (Criteria) this;
        }

        public Criteria and单位所属部门idGreaterThanOrEqualTo(String value) {
            addCriterion("单位所属部门ID >=", value, "单位所属部门id");
            return (Criteria) this;
        }

        public Criteria and单位所属部门idLessThan(String value) {
            addCriterion("单位所属部门ID <", value, "单位所属部门id");
            return (Criteria) this;
        }

        public Criteria and单位所属部门idLessThanOrEqualTo(String value) {
            addCriterion("单位所属部门ID <=", value, "单位所属部门id");
            return (Criteria) this;
        }

        public Criteria and单位所属部门idLike(String value) {
            addCriterion("单位所属部门ID like", value, "单位所属部门id");
            return (Criteria) this;
        }

        public Criteria and单位所属部门idNotLike(String value) {
            addCriterion("单位所属部门ID not like", value, "单位所属部门id");
            return (Criteria) this;
        }

        public Criteria and单位所属部门idIn(List<String> values) {
            addCriterion("单位所属部门ID in", values, "单位所属部门id");
            return (Criteria) this;
        }

        public Criteria and单位所属部门idNotIn(List<String> values) {
            addCriterion("单位所属部门ID not in", values, "单位所属部门id");
            return (Criteria) this;
        }

        public Criteria and单位所属部门idBetween(String value1, String value2) {
            addCriterion("单位所属部门ID between", value1, value2, "单位所属部门id");
            return (Criteria) this;
        }

        public Criteria and单位所属部门idNotBetween(String value1, String value2) {
            addCriterion("单位所属部门ID not between", value1, value2, "单位所属部门id");
            return (Criteria) this;
        }

        public Criteria and建制序列编码IsNull() {
            addCriterion("建制序列编码 is null");
            return (Criteria) this;
        }

        public Criteria and建制序列编码IsNotNull() {
            addCriterion("建制序列编码 is not null");
            return (Criteria) this;
        }

        public Criteria and建制序列编码EqualTo(String value) {
            addCriterion("建制序列编码 =", value, "建制序列编码");
            return (Criteria) this;
        }

        public Criteria and建制序列编码NotEqualTo(String value) {
            addCriterion("建制序列编码 <>", value, "建制序列编码");
            return (Criteria) this;
        }

        public Criteria and建制序列编码GreaterThan(String value) {
            addCriterion("建制序列编码 >", value, "建制序列编码");
            return (Criteria) this;
        }

        public Criteria and建制序列编码GreaterThanOrEqualTo(String value) {
            addCriterion("建制序列编码 >=", value, "建制序列编码");
            return (Criteria) this;
        }

        public Criteria and建制序列编码LessThan(String value) {
            addCriterion("建制序列编码 <", value, "建制序列编码");
            return (Criteria) this;
        }

        public Criteria and建制序列编码LessThanOrEqualTo(String value) {
            addCriterion("建制序列编码 <=", value, "建制序列编码");
            return (Criteria) this;
        }

        public Criteria and建制序列编码Like(String value) {
            addCriterion("建制序列编码 like", value, "建制序列编码");
            return (Criteria) this;
        }

        public Criteria and建制序列编码NotLike(String value) {
            addCriterion("建制序列编码 not like", value, "建制序列编码");
            return (Criteria) this;
        }

        public Criteria and建制序列编码In(List<String> values) {
            addCriterion("建制序列编码 in", values, "建制序列编码");
            return (Criteria) this;
        }

        public Criteria and建制序列编码NotIn(List<String> values) {
            addCriterion("建制序列编码 not in", values, "建制序列编码");
            return (Criteria) this;
        }

        public Criteria and建制序列编码Between(String value1, String value2) {
            addCriterion("建制序列编码 between", value1, value2, "建制序列编码");
            return (Criteria) this;
        }

        public Criteria and建制序列编码NotBetween(String value1, String value2) {
            addCriterion("建制序列编码 not between", value1, value2, "建制序列编码");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}